package com.itheima.wisdomnext.entity;

import java.sql.Timestamp;
import java.util.List;

public class QaPost {
    private int id; // 问答帖子 ID
    private int questionUserId; // 问题发布人 ID
    private String questionTitle; // 问题内容
    private String questionType; // 问题类型（例如：选择题或一般问题）
    private int categoryId; // 帖子分类 ID
    private Timestamp createdAt; // 问题创建时间
    private List<QaAnswerOption> answerOptions; // 关联的选项（例如选择题选项）

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getQuestionUserId() {
        return questionUserId;
    }

    public void setQuestionUserId(int questionUserId) {
        this.questionUserId = questionUserId;
    }

    public String getQuestionTitle() {
        return questionTitle;
    }

    public void setQuestionTitle(String questionTitle) {
        this.questionTitle = questionTitle;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public List<QaAnswerOption> getAnswerOptions() {
        return answerOptions;
    }

    public void setAnswerOptions(List<QaAnswerOption> answerOptions) {
        this.answerOptions = answerOptions;
    }
}
